const children = [
  {
    name: 'CartIndex',
    path: 'index',
    component: () => import('@/views/cart/index.vue'),
    meta: {
      menu: false, // 是否显示底部菜单
      auth: true, // 是否需要验证登录
      navBar: true, // 是否显示头部导航栏
      navBarTitle: '购物车', // 头部导航栏标题
    }
  },
  {
    name: 'CartConfirm',
    path: 'confirm',
    component: () => import('@/views/cart/confirm.vue'),
    meta: {
      menu: false,
      auth: true,
      navBar: true,
      navBarTitle: '确认订单',
    }
  },
]

export default {
  name: 'Cart',
  path: '/cart',
  component: {
    template: `<router-view></router-view>`
  },
  children,
  redirect: '/cart/index'
}